package com.igroupes.ovineherd.model.dto;

import com.igroupes.ovineherd.model.IParentModelData;
import com.igroupes.ovineherd.model.table.TableAttribute;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class ModelDataAddRequest {
    @NotNull(message = "表配置不能为空")
    TableAttribute table;
    @NotEmpty(message = "表字段不能为空")
    List<IParentModelData> fields;
}
